.class Lcom/skyhookwireless/wps/_sdkr;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Iterable;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T::",
        "Lcom/skyhookwireless/_sdkz;",
        ">",
        "Ljava/lang/Object;",
        "Ljava/lang/Iterable",
        "<TT;>;"
    }
.end annotation


# static fields
.field static final _sdkd:Z

.field private static final z:Ljava/lang/String;


# instance fields
.field private final _sdka:J

.field private final _sdkb:I

.field private final _sdkc:Ljava/util/LinkedList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/LinkedList",
            "<TT;>;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 10

    const/4 v8, 0x1

    const/4 v7, 0x0

    const-string v0, "\u0006\u0007I\u001e\t\u001f\u001cN>\u0014K\u0003R(\u0013K\u000cB{\u0000\u0019\u000bF/\u0002\u0019NS3\u0006\u0005N]>\u0015\u0004T\u0007"

    invoke-virtual {v0}, Ljava/lang/String;->toCharArray()[C

    move-result-object v0

    array-length v1, v0

    if-gt v1, v8, :cond_3

    move v2, v7

    :cond_0
    move v3, v1

    move v4, v2

    move-object v1, v0

    move v9, v2

    move-object v2, v0

    move v0, v9

    :goto_0
    aget-char v5, v1, v0

    rem-int/lit8 v6, v4, 0x5

    packed-switch v6, :pswitch_data_0

    const/16 v6, 0x67

    :goto_1
    xor-int/2addr v5, v6

    int-to-char v5, v5

    aput-char v5, v1, v0

    add-int/lit8 v0, v4, 0x1

    if-nez v3, :cond_1

    move-object v1, v2

    move v4, v0

    move v0, v3

    goto :goto_0

    :cond_1
    move v1, v3

    move-object v9, v2

    move v2, v0

    move-object v0, v9

    :goto_2
    if-gt v1, v2, :cond_0

    new-instance v1, Ljava/lang/String;

    invoke-direct {v1, v0}, Ljava/lang/String;-><init>([C)V

    invoke-virtual {v1}, Ljava/lang/String;->intern()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/skyhookwireless/wps/_sdkr;->z:Ljava/lang/String;

    const-class v0, Lcom/skyhookwireless/wps/_sdkr;

    invoke-virtual {v0}, Ljava/lang/Class;->desiredAssertionStatus()Z

    move-result v0

    if-nez v0, :cond_2

    move v0, v8

    :goto_3
    sput-boolean v0, Lcom/skyhookwireless/wps/_sdkr;->_sdkd:Z

    return-void

    :cond_2
    move v0, v7

    goto :goto_3

    :pswitch_0
    const/16 v6, 0x6b

    goto :goto_1

    :pswitch_1
    const/16 v6, 0x6e

    goto :goto_1

    :pswitch_2
    const/16 v6, 0x27

    goto :goto_1

    :pswitch_3
    const/16 v6, 0x5b

    goto :goto_1

    :cond_3
    move v2, v7

    goto :goto_2

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
    .end packed-switch
.end method

.method constructor <init>(JI)V
    .locals 3

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    if-gtz p3, :cond_0

    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v2, Lcom/skyhookwireless/wps/_sdkr;->z:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    iput-wide p1, p0, Lcom/skyhookwireless/wps/_sdkr;->_sdka:J

    iput p3, p0, Lcom/skyhookwireless/wps/_sdkr;->_sdkb:I

    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Lcom/skyhookwireless/wps/_sdkr;->_sdkc:Ljava/util/LinkedList;

    return-void
.end method


# virtual methods
.method _sdka()I
    .locals 1

    iget-object v0, p0, Lcom/skyhookwireless/wps/_sdkr;->_sdkc:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->size()I

    move-result v0

    return v0
.end method

.method _sdka(JILcom/skyhookwireless/_sdkwb;)Ljava/lang/Iterable;
    .locals 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(JI",
            "Lcom/skyhookwireless/_sdkwb;",
            ")",
            "Ljava/lang/Iterable",
            "<TT;>;"
        }
    .end annotation

    if-gtz p3, :cond_0

    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v2, Lcom/skyhookwireless/wps/_sdkr;->z:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    iget-object v6, p0, Lcom/skyhookwireless/wps/_sdkr;->_sdkc:Ljava/util/LinkedList;

    new-instance v0, Lcom/skyhookwireless/wps/_sdks;

    move-object v1, p0

    move v2, p3

    move-object v3, p4

    move-wide v4, p1

    invoke-direct/range {v0 .. v5}, Lcom/skyhookwireless/wps/_sdks;-><init>(Lcom/skyhookwireless/wps/_sdkr;ILcom/skyhookwireless/_sdkwb;J)V

    invoke-static {v6, v0}, Lcom/skyhookwireless/_sdkzc;->_sdkb(Ljava/lang/Iterable;Lcom/skyhookwireless/_sdkmd;)Ljava/lang/Iterable;

    move-result-object v0

    return-object v0
.end method

.method _sdka(Lcom/skyhookwireless/_sdkwb;)V
    .locals 7

    sget-boolean v1, Lcom/skyhookwireless/wps/Location;->_sdki:Z

    const/4 v0, 0x0

    move-object v2, v0

    :goto_0
    iget-object v0, p0, Lcom/skyhookwireless/wps/_sdkr;->_sdkc:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->size()I

    move-result v0

    iget v3, p0, Lcom/skyhookwireless/wps/_sdkr;->_sdkb:I

    if-lt v0, v3, :cond_2

    iget-object v0, p0, Lcom/skyhookwireless/wps/_sdkr;->_sdkc:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->getLast()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/skyhookwireless/_sdkz;

    if-nez v1, :cond_3

    invoke-interface {v0}, Lcom/skyhookwireless/_sdkz;->getAge()Lcom/skyhookwireless/_sdkwb;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/skyhookwireless/_sdkwb;->_sdka(Lcom/skyhookwireless/_sdkwb;)J

    move-result-wide v3

    iget-wide v5, p0, Lcom/skyhookwireless/wps/_sdkr;->_sdka:J

    cmp-long v0, v3, v5

    if-ltz v0, :cond_2

    iget-object v0, p0, Lcom/skyhookwireless/wps/_sdkr;->_sdkc:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->removeLast()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/skyhookwireless/_sdkz;

    if-eqz v1, :cond_1

    :goto_1
    move-object v1, v0

    :goto_2
    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/skyhookwireless/wps/_sdkr;->_sdkc:Ljava/util/LinkedList;

    invoke-virtual {v0, v1}, Ljava/util/LinkedList;->addLast(Ljava/lang/Object;)V

    :cond_0
    return-void

    :cond_1
    move-object v2, v0

    goto :goto_0

    :cond_2
    move-object v0, v2

    goto :goto_1

    :cond_3
    move-object v1, v2

    goto :goto_2
.end method

.method _sdka(Lcom/skyhookwireless/_sdkz;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(TT;)V"
        }
    .end annotation

    iget-object v0, p0, Lcom/skyhookwireless/wps/_sdkr;->_sdkc:Ljava/util/LinkedList;

    invoke-virtual {v0, p1}, Ljava/util/LinkedList;->addFirst(Ljava/lang/Object;)V

    sget-boolean v0, Lcom/skyhookwireless/wps/_sdkr;->_sdkd:Z

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/skyhookwireless/wps/_sdkr;->_sdkc:Ljava/util/LinkedList;

    sget-object v1, Lcom/skyhookwireless/_sdkz;->COMPARATOR:Ljava/util/Comparator;

    invoke-static {v0, v1}, Lcom/skyhookwireless/_sdkzc;->_sdka(Ljava/lang/Iterable;Ljava/util/Comparator;)Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v0, Ljava/lang/AssertionError;

    invoke-direct {v0}, Ljava/lang/AssertionError;-><init>()V

    throw v0

    :cond_0
    return-void
.end method

.method _sdkb()V
    .locals 1

    iget-object v0, p0, Lcom/skyhookwireless/wps/_sdkr;->_sdkc:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->clear()V

    return-void
.end method

.method public iterator()Ljava/util/Iterator;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Iterator",
            "<TT;>;"
        }
    .end annotation

    iget-object v0, p0, Lcom/skyhookwireless/wps/_sdkr;->_sdkc:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    return-object v0
.end method
